#ifndef CGLOBALOBSERVER_H_
#define CGLOBALOBSERVER_H_

#include <e32base.h>
#include <eikenv.h>

class CGlobalObserver : public CActive
{
    public:
    	/**
		 * Constructor
		 * @return - NONE
		 * */
        CGlobalObserver( CEikonEnv* aEnv );
        
        /**
		 * Destructor
		 * @return - NONE
		 * */
        virtual ~CGlobalObserver();
        
		/**
		 * This function issues the initial request
		 * @return - NONE
		 * */
        void Start();
        
    protected: // from CActive
		/**
		 * This function is called by the platform upon completion of an asynchronous request
		 * @return - NONE
		 * */
        void RunL() ;
        
		/**
		 * This function is called by the platform to cancel any asynchronous request
		 * @return - NONE
		 * */
        void DoCancel();
    private: // data
        CEikonEnv* iEnv;
};

#endif /*CGLOBALOBSERVER_H_*/
